<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<h2>Hello World!</h2>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js" integrity="sha384-FzT3vTVGXqf7wRfy8k4BiyzvbNfeYjK+frTVqZeNDFl8woCbF0CYG6g2fMEFFo/i" crossorigin="anonymous"></script>
<form id="form" action="/test/test/upload_file" method="post">
    <input name="file_name" type="file">
    <input type="button" id="button" value="提交">
</form>
<script>
    $("#button").click(function() {
        console.log("asdf");
            $("#form").ajaxSubmit(function(){
            });
    })
</script>
</body>
</html>
